<?php 

$title = 'Login';
$this->headTitle($title);

 $form->setAttribute('action', $this->url('login', array('action' => 'login')))->
        setAttribute('role',"form")->
        setAttribute('class',"form-horizontal");
 $form->prepare();
 //echo $this->formCollection($form);
 ?>
 
 
 
<div class="row">
	<div class="col-md-4 col-md-offset-7">
		<div class="panel panel-default">
			<div class="panel-heading">
				<span class="glyphicon glyphicon-lock"></span> <?php echo $this->escapeHtml($title); ?>
			</div>
			<div class="panel-body">
			<?php echo $this->form()->openTag($form);?>
					<div class="form-group">
						<label class="col-sm-3 control-label" for="Email">Email</label>
						<div class="col-sm-9">
						<?php echo $this->formRow($form->get('email'));?>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label" for="Password">Password</label>
						<div class="col-sm-9">
						<?php echo $this->formRow($form->get('password'));?>
						</div>
					</div>
					<div class="form-group">
						<div class="col-sm-offset-3 col-sm-9">
							<div class="checkbox">
								<label>
                            <?php echo $this->formRow($form->get('remember-me'));?>
								</label>
							</div>
						</div>
					</div>
					<div class="form-group last">
						<div class="col-sm-offset-3 col-sm-9">
                            <?php echo $this->formSubmit($form->get('submit'));?>
                            <?php echo $this->formSubmit($form->get('reset'));?>
						</div>
					</div>
<?php 
				echo $this->form()->closeTag();
 ?>
			</div>
			<div class="panel-footer">
				Not Registred? <a href="<?php echo $this->basePath();?>/admin/register">Register here</a>
			</div>
		</div>
	</div>
</div>